Skip to content

A few improvements to DPL InputRecord - #3061

Merged
ktf merged 1 commit into
AliceO2Group:devfrom
matthiasrichter:fix-inputrecord
Mar 3, 2020
Merged

A few improvements to DPL InputRecord#3061
ktf merged 1 commit into
AliceO2Group:devfrom
matthiasrichter:fix-inputrecord

Conversation

@matthiasrichter

Copy link
Copy Markdown
Collaborator
  • fix the end iterator instance of part iterator
  • making const what should be const
  • bounds check before getNofParts callback to check against span size
  • init InputRecord from InputSpan by move (which was intended but there was
    an unwanted copy)
  • making InputRecord::get(DataRef) a static method
    This method actually only requires the pointers from the DataRef argument, no
    concrete object or state is needed.
    At some point this can be also seperated from InputRecord, thus separating data
    and serialization method.

- fix the end iterator instance of part iterator
- making const what should be const
- bounds check before getNofParts callback to check against span size
- init InputRecord from InputSpan by move (which was intended but there was
  an unwanted copy)
- making InputRecord::get<T>(DataRef) a static method
  This method actually only requires the pointers from the DataRef argument, no
  concrete object or state is needed.
  At some point this can be also seperated from InputRecord, thus separating data
  and serialization method.
Comment on lines +26 to +29
InputSpan() = delete;
InputSpan(InputSpan const&) = delete;
InputSpan(InputSpan&&) = default;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are fine, but we should also override operator= then.

@ktf

ktf commented Mar 3, 2020

Copy link
Copy Markdown
Member

GPU issue unrelated. Merging.

@ktf
ktf merged commit 9e859b7 into AliceO2Group:dev Mar 3, 2020
@matthiasrichter
matthiasrichter deleted the fix-inputrecord branch March 4, 2020 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants